﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using MebAppMarketplace.Biz;
using MebAppMarketplace.JsonModel;

namespace MebAppMarketplace.Api
{
    [Route("api/[controller]/[action]")]
    public class AppEventController : Controller
    {
        public AppEventService Service { get; set; }
        [HttpPost]
        public IActionResult AddEvent([FromBody]AppEventRequest data)
        {
            Service.AddEvent(data);
            return this.JsonOk();
        }
    }
}
